#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    connect(ui->pushButton,&QPushButton::clicked,this,&MainWindow::quick);
}

void MainWindow::quick()
{
    ui->pushButton->setText("我是天才");
}

MainWindow::~MainWindow()
{
    delete ui;
}

